import Mock from "mockjs";
const arr = Mock.mock({
  "list|22-100": [
    // 生成一个 length是 22~100之间的数组
    {
      id: "@id",
      inspectionId: "@integer(3,1000000)", // 生成1-1000000之间的巡视工单id
      eleContractNo: "@string(3,50)", // 生成3-50位的产品合同号-梯号
      mntContractNo: "@string(3,50)", // 生成3-50位的保养合同号
      customerName: "@cname", // 生成客户名称
      onsiteEleName: "@string(3,50)", // 生成3-50位的现场客户梯号
      "inspectionType|1": ["ELEVATOR", "ESCALATOR"], // 生成作业类型
      userName: "@cname", // 生成保养巡视人员
      inspectionDate: "@date(yyyy-MM-dd)", // 生成巡视时间
      "h|1": "@time(HH:mm)-@time(HH:mm)", // 生成巡视时间段
      "orderCode|1": [
        "INITIATED",
        "CHANGE_REQUEST",
        "INSPECTION_AUDIT",
        "COMPLETE",
      ], // 生成订单状态
    },
  ],
  code: 200,
  message: "获取成功！！！",
  success: true,
});
export default [
  {
    url: "/tick-basic/order/pageList", // 模拟登录接口
    method: "get", // 请求方式
    timeout: 3000, // 超时事件
    statusCode: 200, // 返回的http状态码
    response: (option: any) => {
      // 返回的结果集
      return {
        code: 200,
        message: "登录成功",
        success: true,
        data: arr,
      };
    },
  },
];
